package com.badlogic.androidgames.framework.math;

public class Circle {

	public static final Vector2 center = new Vector2();
	public float radius;
	
	public Circle(float x, float y, float radius){
		this.center.set(x, y);
		this.radius = radius;
	}
	
	public boolean overlapCircles(Circle c1, Circle c2){
		float distSquare = c1.center.distSquared(c2.center);
		float radiusSum = c1.radius + c2.radius;
		return distSquare <= radiusSum * radiusSum;
	}
}
